package com.panda.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.panda.entity.po.User;
import com.panda.entity.vo.*;
import com.panda.utils.RespondResult;

import java.util.List;
import java.util.Map;

/**
 * (User)表服务接口
 *
 * @author makejava
 * @since 2022-03-13 10:29:15
 */
public interface UserService extends IService<User> {

    RespondResult register(RegisterVo registerVo);

    RespondResult<UserInfoVo> getUserInfo(Long id);

    RespondResult<ModifyUserVo> updateUserInfo(ModifyUserVo user);

    RespondResult updateUserSex(User user);

    RespondResult updateUserAvatar(User user);

    RespondResult registerCount();

    List<Map<String, String>> createdUserStatistic();

    RespondResult updatePassword(UserPwdVo userVo);

    RespondResult updateUsername(UserVo userVo);
}

